// pages/inpram/dean/dailyDynamics/dailyDynamics.js
import { $wuxCalendar } from '../../../../dist/index'

Page({
  data: {
    value1: [],

  },

  onLoad() {

  },
/**
 * 选择查询时间
 */
openCalendar1() {
    $wuxCalendar().open({
      value: this.data.value1,
      onChange: (values, displayValues) => {
        console.log('onChange', values, displayValues)
        this.setData({
          value1: displayValues,
        })
      },
    })
  },

  /**
   * 确定，跳转
   */
  determine: function () {
    wx.redirectTo({
      url: '../../../view/dean/dailyDynamics/dailyDynamics?startTime=' + this.data.value1[0],
    })
  }
})
